package com.zzxy.mybatis34.dao;

import com.zzxy.mybatis34.entity.User;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.support.SqlSessionDaoSupport;

public class UserDaoImpl {
    private SqlSession sqlSession;
    public UserDaoImpl(SqlSession sqlSession){
        this.sqlSession=sqlSession;
    }

    public User  findUserById(int id) {
        User user = sqlSession.selectOne("findUserById", id);
        return user;
    }
}
